﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Chung/QLSV.Master" AutoEventWireup="true" CodeBehind="PhongHoc.aspx.cs" Inherits="proRFID_DiemDanh.PhongHoc.PhongHoc" %>
<asp:Content ID="Content1" ContentPlaceHolderID="contentHead" runat="server">
    <link href="CssPhongHoc.css" rel="stylesheet" type="text/css" />
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="contentMain" runat="server">
<div style="text-align:center; width:100%" >
    <fieldset style="width:400px">
        <legend>Danh sách phòng học</legend>
        <table align="center" style="width:90%; text-align:center; ">
            <tr>
                <td>
                    <table align="center" class="border" style="text-align:center; width:100%">
                        <tr>
                            <th width="25%">Mã phòng</th>
                            <th>Tên phòng</th>
                            <th width="10%">Xóa</th>
                        </tr>
                        <asp:Repeater ID="rptPhongHoc" runat="server">
                        <ItemTemplate>
                        <tr>
                            <td><%#Eval("MaPhong") %></td>
                            <td><%#Eval("TenPhong") %></td>
                            <td><input type="checkbox" name="chkXoa" value="<%#Eval("MaPhong") %>" /></td>
                        </tr>
                        </ItemTemplate>
                        </asp:Repeater>
                        <tr>
                            <td colspan="3">
                                <div style="overflow: hidden;">
                                    <asp:Repeater ID="rptPages" runat="server" onitemcommand="rptPages_ItemCommand">
                                        <ItemTemplate>
                                            <asp:LinkButton ID="btnPage" class="pagingNumber" 
                                                CommandName="Page" 
                                                CommandArgument="<%# Container.DataItem %>" 
                                                runat="server">
                                                <%# Container.DataItem %>
                                            </asp:LinkButton>
                                        </ItemTemplate>
                                    </asp:Repeater>
                                </div>
                            </td>
                        </tr>
                    </table>
                </td>
            </tr>
            <tr>
                <td>
                    <asp:Label ID="lbThongbao" runat="server" CssClass="Thongbao"></asp:Label><br />
                </td>
            </tr>
            <tr>
                <td style="text-align:right">
                    <asp:ImageButton ID="cmdThem" runat="server" ImageUrl="~/Chung/img/add.png" 
                        CssClass="nutnhan" onclick="cmdThem_Click"/>
                    <asp:ImageButton ID="cmdXoa" runat="server"  ImageUrl="~/Chung/img/delete.png" 
                        CssClass="nutnhan" onclick="cmdXoa_Click"/>
                </td>
            </tr >
        </table>
        
    </fieldset>
</div>
</asp:Content>
